home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / batcsh10.zip / bat2csh.man < prev    next >
Text File  |  1994-01-12  |  2KB  |  66 lines

  1.  
  2.  
  3.  
  4. BAT2CSH(1)          UNIX Programmer's Manual           BAT2CSH(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      bat2csh - filter that converts DOS batch to UNIX C shell
  10.  
  11. SYNOPSIS
  12.      Interactive mode:
  13.  
  14.      bat2csh
  15.          
  16.      But usually:
  17.  
  18.      bat2csh <filename.bat >filename
  19.  
  20. DESCRIPTION
  21.      Bat2csh makes a literal conversion of DOS batch commands 
  22.      to UNIX C shell commands.  It reads from standard input 
  23.      (stdin) and writes to standard output (stdout).  Changes 
  24.      can be made to the resulting csh script to match the naming 
  25.      conventions of the destination computer.  To take advantage 
  26.      of the additional control structures available within csh, 
  27.      one may wish to restructure the resulting script.
  28.  
  29.      Remember to use the chmod +x command to make the csh script 
  30.      executable.
  31.  
  32. ERROR REPORTING
  33.      When a DOS batch syntax error is detected, bat2csh will 
  34.      write to stdout the error message ### SYNTAX ERROR ###.
  35.  
  36.      The last line of the batch file should end with a newline. 
  37.      If not, bat2csh will usually handle it.  But if bat2csh has 
  38.      a problem with the missing newline, it will write the error 
  39.      message ### PREMATURE END-OF-FILE ### to stdout.  The last 
  40.      line of the batch file will not have been successfully 
  41.      converted.
  42.      
  43.      If there are any errors, the number of errors are written 
  44.      to the monitor (stderr).
  45.      
  46. LIMITATIONS
  47.      Bat2csh does not consider the % character to be a legal 
  48.      character within a filename.  Bat2csh uses the % character
  49.      to locate replaceable parameters and replaceable variables.
  50.  
  51. SEE ALSO
  52.      csh(1), chmod(1)
  53.  
  54. AUTHOR
  55.      Bill Pierpoint.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. January 12, 1994                                                1
  64.  
  65.  
  66.